package com.example.wx.dailyreport.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.wx.dailyreport.pojo.Role;
import com.example.wx.dailyreport.pojo.RoleAuthorities;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author hulinbo
 * @since 2020-07-30
 */
public interface RoleService extends IService<Role> {

    List<RoleAuthorities> selectRoleInPage(Role role, Long authority_flag, int page, int limit);

    int selectRoleCount(Role role, Long authority_flag);

    boolean updateRole(Role role, Integer[] authorityIds);

    boolean insertRole(Role role, Integer[] authorityids);

    boolean deleteRole(Integer id);
}
